package com.wang.ymcc.mapper;

import com.wang.ymcc.dot.bluckdto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BluckMapper {
    @Insert("insert into t_black_list(phone,ip,incor) values(#{phone},#{ip},#{incor})")
    void add(bluckdto bluckdto);

    @Select("select * from t_black_list where phone=#{phone}")
    bluckdto selectByphone(String phone);
    
    @Select("select * from t_black_list")
    List<bluckdto> findall();
}
